if (getlist.getlastcard().rankvalue = (foundation[row].getlastcard().rankvalue + 1)) and (getlist.getlastcard().suit = foundation[row].getlastcard().suit) then
equal = 1
currentsel = spriteNum - 4
godlist = foundation[row]
else
if (getlist.getlastcard().rank = "ace") and (foundation[row].getlastcard().rank = "king") and (getlist.getlastcard().suit = foundation[row].getlastcard().suit) then
equal = 1
currentsel = spriteNum - 4
godlist = foundation[row]
end if
end if
end if
end if
end if
else
if (the clickOn <> 12) and (the clickOn <> 0) and (the clickOn <> 10) then